package router

import (
	"github.com/gogf/gf/v2/net/ghttp"
	"websocket/internal/service"
)

func BindController(group *ghttp.RouterGroup) {
	group.Middleware(service.Middleware().CORS, service.Middleware().Logger, service.Middleware().TryParseToken, service.Middleware().Response)
	group.Group("/api", func(group *ghttp.RouterGroup) {
		bindCommonController(group)
		bindWebsocketController(group)
	})
}
